#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"
TestList1()
{
	ListNode* plist= ListInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPushBack(plist, 5);
	ListPushBack(plist, 6);
	ListPrint(plist);
	ListPopBack(plist);
	ListPopBack(plist);
	ListPopBack(plist);
	ListPopBack(plist);

	ListPrint(plist);
	ListDestroy(plist);
	plist = NULL;

}
TestList2()
{
	ListNode* plist = ListInit();
	ListPushFront(plist,1);
	ListPushFront(plist, 2);
	ListPrint(plist);

	//ListPopFront(plist);
	ListPopFront(plist);

	ListPrint(plist);
	ListDestroy(plist);
	plist = NULL;

}
TestList3()
{
	ListNode* plist = ListInit();
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPrint(plist);

	ListNode * pos=ListFindNode(plist, 1);
	ListInsert(plist, pos, 0);
	ListPrint(plist);
	ListEarse(plist, pos);
	ListPrint(plist);
	ListDestroy(plist);
	plist = NULL;

}
int main()
{
	//TestList1();
	TestList2();
	//TestList3();


	return 0;
}